package com.dubbo.consumer.service.impl;

import com.dubbo.api.service.CostService;
import com.dubbo.consumer.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 产品service
 */
@Service
public class ProductServiceImpl implements ProductService {


    @Autowired
    private CostService costService;

    @Override
    public Integer getCost(int a) {
            return costService.add(a);
    }
}
